package com.yanqu.road.server.cmd.activity.shuihuyezicard;

import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.shuihuyezipai.ShuiHuYeZiCardActivityBattleMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

/**
 * @Description
 * @Author cwq
 * @Data 2021/12/15 18:07
 */
@Cmd(code = CrossProtocol.C_CROSS_SHUIHUYEZICARD_LOAD_PVP_ROOM, desc = "水浒叶子牌 加载pvp 房间 ")
public class CrossShuiHuYeZiLoadPvpCardCardCmd  extends CrossCommand {

    long userId ;
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        userId = packet.getPlayerId();
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        ShuiHuYeZiCardActivityBattleMgr.loadGame(userId,serverId);
    }

    @Override
    public void sendData() {

    }
}
